import request from '@/utils/request'

// 查询订单对应资源列表
export function listOrderinstance(query) {
  return request({
    url: '/resell/orderinstancesql/list',
    method: 'get',
    params: query
  })
}


export function getsqlsl(data) {
  return request({
    url: '/resell/orderinstancesql/getsqlsl',
    method: 'post',
    data: data
  })
}

export function listDatastores(data) {
  return request({
    url: '/resell/orderinstancesql/listDatastores',
    method: 'post',
    data: data
  })
}

export function listFlavors(data) {
  return request({
    url: '/resell/orderinstancesql/listFlavors',
    method: 'post',
    data: data
  })
}
export function listDatabases(data) {
  return request({
    url: '/resell/orderinstancesql/listDatabases',
    method: 'post',
    data: data
  })
}
export function showMetricData(data) {
  console.log(query);
  return request({
    url: '/resell/orderinstancesql/showMetricData',
    method: 'post',
    data: data
  })
}

export function showMetricDatamore(data) {
  return request({
    url: '/resell/orderinstancesql/showMetricDatamore',
    method: 'post',
    data: data
  })
}
